package com.zhonghui.mes.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 制造执行MES-领料申请对象 mes_material_apply
 * 
 * @author qiezi
 * @date 2023-12-22
 */
@Data
public class MesMaterialApplyVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /** 领料单号 */
    @Excel(name = "领料单号")
    private String oddNumber;

    /** 计划排产id */
    @Excel(name = "计划排产id")
    private Long plannedProductionId;
    private String serial_no;
    private String plan_number;
    private String material_name;
    private String material_model;
    private String material_specifications;
    private String material_unit;

    /** 领取日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领取日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectionDate;

    /** 申请人id */
    @Excel(name = "申请人id")
    private Long applicant;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applicantDate;

    /** 申请状态:0未提交,1待审核,2已审核 */
    @Excel(name = "申请状态:0未提交,1待审核,2已审核")
    private Long applicantStatus;

    /** 审核人id */
    @Excel(name = "审核人id")
    private Long reviewer;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reviewerDate;

    /** 审核状态:0驳回,1通过 */
    @Excel(name = "审核状态:0驳回,1通过")
    private Long reviewerStatus;

    /** 审核意见 */
    private String reviewComments;

    /** 状态:0未领料,1已领料,2已领料未检验,3已领料检验合格,4已领料检验未合格 */
    private Long status;

}
